package com.example.secondhandsysapi.Service;

import com.example.secondhandsysapi.Entity.CommentInfo;
import com.example.secondhandsysapi.Vo.Comment;
import com.example.secondhandsysapi.Vo.UserInfoCommentInfo;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface CommentInfoService {

    //获取待审核的评论信息
    List<CommentInfo> getAllUpdateCommentInfo(@Param("comment_description") String comment_description);

    //修改通过的状态
    Integer updateStatus(@Param("comment_id") Integer comment_id);

    //添加拒绝备注
    Integer updateCheck_Info(@Param("check_info") String check_info,@Param("comment_id") Integer comment_id );

    //获取用户的分页信息
    PageInfo<CommentInfo> getCommentInfo(int pageNum, int pageSize);

    List<UserInfoCommentInfo>  getAllCommentInfoAndUserInfo(Integer id);
        //List<UserInfoCommentInfo> getAllCommentInfoAndUserInfo(String name);
    List<UserInfoCommentInfo> getAll();
//商品详情页获取评论
    Integer InsertComment(@Param("user_id") Integer user_id,@Param("goods_id") Integer goods_id,@Param("comment_description") String comment_description,@Param("goods_mark") Integer goods_mark,@Param("logistics_mark") Integer logistics_mark,@Param("service_mark") Integer service_mark);

    //个人中心显示信誉
    List<CommentInfo> getUserCommentInfo(@Param("user_id") Integer user_id);

    //显示评论
    List<Comment> showCommentInfo(@Param("goods_id") Integer goods_id);
    }








